package com.wuge.gulimall.product.feign;

import com.wuge.common.to.SkuRedectionTo;
import com.wuge.common.to.SpuBrandTo;
import com.wuge.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @PostMapping("/coupon/spubounds/save")
    // @RequiresPermissions("coupon:couponspurelation:save")
     R save(@RequestBody SpuBrandTo spuBrandTo);

    @PostMapping("/coupon/skufullreduction/saverelaction")
    R saveSkuRelaction(@RequestBody SkuRedectionTo skuRedectionTo);
}
